from django.db import models
from user.models import UserModel
from cake.models import CakeModel
# Create your models here.
class CartModel(models.Model):
    user = models.ForeignKey(UserModel, on_delete=models.CASCADE)
    cake = models.ForeignKey(CakeModel, on_delete=models.CASCADE)
    cate=models.IntegerField(null=True,verbose_name='规格')
    count = models.IntegerField(default=1)
    isshow=models.BooleanField(default=False)
    class Meta:
        db_table = 'Cart'




